Chris Pollett >
Old Classses > |
HW#2 --- last modified February 07 2019 04:34:02..Due date: Oct 2
Files to be submitted: Purpose: To gain experience with translations, rotations, and scalings in OpenGL. Related Course Outcomes: The main course outcomes covered by this assignment are: LO2 -- Create simple 2D or 3D scenes in OpenGL. LO5 -- Write an OpenGL program that makes used of 2D or 3D affine transformations. Specification: For this homework, you will create a simple 3D scene consisting of a "Jumping Jack Man". Jumping Jack is a humanoid figure built out of six right rectangular prisms: a head, a torso, two arms and two legs. The starting point for coding this character can be the Hello World 3D code on the book's web site. Your code should be submitted in a file Hw2.zip. When run your program should show a front, face-on view of Jumping Jack. While the 1 key is pressed, you should draw the scene looking down from above Jumping Jack's head. While the 2 key is pressed, you should draw the scene standing the same distance away from Jumping Jack as in the front view but from a vantage looking toward his right side. Jumping Jack can do four exercises: he can do a jumping jack while the j key is pressed (arms and legs outstretched), he can twist his torso 45 degrees (left or right your choice) while the t key is pressed, he can supersize (become twice as big in each dimension) while the s key is pressed, finally, while the h key is pressed he hops a fixed displacement to either the left or right. You do not have to animate these exercises. When you hit the j key for example Jumping Jack is instantly in the jumping jack position. It is allowed that the user holds down 1 or 2 as well as an exercise key at the same time j, t, s, or h. However, you don't have to handle two exercise keys at the same time or two viewpoint keys at the same time. Point Breakdown
|